-
Notifications
You must be signed in to change notification settings - Fork 16.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add custom rotation library, removing params and special cases in compass, ahrs and INS #19164
Conversation
73e462f
to
625b442
Compare
Adds rather more than I had hoped.
|
625b442
to
4f33a03
Compare
param conversion needs testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice!
I'm surprised it adds so much. What about for only one custom rotation?
Marked for dev call to gauge where or not this is worth the flash cost. There still seems to be some unknown issue with compass custom rotations that I was hoping this would resolve. It seems that a custom rotation is not the same as its equivalent hard-coded one. |
don't do double precision for this |
4f33a03
to
9b5d1af
Compare
Much more reasonable flash cost now its only storing single precision rotations.
|
fdd1c64
to
ce2b161
Compare
ce2b161
to
a07c153
Compare
Added testing to the math rotations example. |
#include "AP_CustomRotations.h" | ||
#include <AP_Vehicle/AP_Vehicle_Type.h> | ||
|
||
#if !APM_BUILD_TYPE(APM_BUILD_AP_Periph) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to have an AP_CUSTOMROTATIONS_ENABLED
so that if a Periph really did want to allow custom rotations they could.
737987e
to
392862e
Compare
392862e
to
a245e0d
Compare
a245e0d
to
1bd5d52
Compare
1bd5d52
to
b7a3e62
Compare
Added notes on euler ordering and updated all of the rotation param descriptions to be the same. Also added a init allocation error. |
MatekF405:
Periph f103-GPS:
|
This removes the params and special cases for custom rotations. Instead adding support to AP math. If new rotations are selected the corresponding roll pitch and yaw params will show up.
This also means that custom rotations work with everything, and it is trivial to add more.
This adds two, so you could do a custom rotation on the AHRS and one compass, or two compass.
This also does param conversion.